#include <stdio.h>

void splistfloat(float x, int * intpart, float* fracpart)
{
	*intpart = (int)x;
	*fracpart = x - (int)x;
}

int main()
{
	float num = 0, Frap = 0;
	int Intp = 0;
	int* Intpart = &Intp;
	float* Fracpart = &Frap;
	printf("input number:");
	scanf("%f", &num);
	splistfloat(num, Intpart, Fracpart);
	printf("intpart = %d\n", Intp);
	printf("fracpart = %f", Frap);

	return 0;
}